<script setup>
// import AppSidebar from '@/components/common/AppSidebar.vue';
import { useRouter } from 'vue-router';
const router = useRouter();
const goToProfile = () => {
    router.push('/profile');
};
</script>
<template>
    <div class="page-wrapper">
        <!-- Sidebar for navigation -->
        <!-- <AppSidebar /> -->
        <!-- Main Content -->
        <div class="content-container">
            <div class="warning-card">
                <div class="icon-wrapper">
                    <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="64" height="64">
                        <path
                            d="M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm-48-224h96v96h-96v-96zm0-320h96v256h-96V352z"
                            fill="#E6A23C" />
                    </svg>
                </div>

                <h2 class="warning-title">访问受限</h2>

                <p class="warning-message">
                    请注意： 您需要先前往备案信息页面完成网站备案。<br>
                    备案成功并审核通过后，才能启用此页面的全部功能。
                </p>

                <div class="action-area">
                    <el-button type="primary" size="large" @click="goToProfile">
                        前往备案信息页面
                    </el-button>
                </div>
            </div>
        </div>
    </div>
</template>
<style scoped lang="scss">
.page-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
}

.content-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.warning-card {
    background: white;
    padding: 60px 80px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.icon-wrapper {
    margin-bottom: 24px;
}

.warning-title {
    font-size: 24px;
    color: #303133;
    margin-bottom: 16px;
    font-weight: 600;
}

.warning-message {
    font-size: 16px;
    color: #606266;
    line-height: 1.6;
    margin-bottom: 32px;
}

.action-area {
    display: flex;
    justify-content: center;
}
</style>